import service from "../index";

export const getProUser = async (id: number) => {
  return await service({
    method: "post",
    url: "/userCenter/getProUser",
    data: { id: id },
  });
};

//修改基本资料
export const updateBasicUser = async (params: any) => {
  return await service({
    method: "post",
    url: "/userCenter/updateBasicUser",
    data: params,
  });
};

//修改密码
export const resetPwd = async (params: any) => {
  return await service({
    method: "post",
    url: "/userCenter/resetPwd",
    data: params,
  });
};
